package com.zhongyu.item.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringCloudApplication
@EnableFeignClients
@EnableScheduling//开启定时任务
/*@EnableCaching//开启redis缓存*/
@EnableElasticsearchRepositories
public class ItemConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ItemConsumerApplication.class);
    }
}
